package com.howj2.springcloud.service;


import com.howj2.springcloud.client.ProductClientFeign;
import com.howj2.springcloud.pojo.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductService {

	@Autowired
    ProductClientFeign productClientFeign;

	public List<Product> listProducts(){
		return productClientFeign.listProdcuts();

	}
}
